<template>
	<view>
		<!-- 		<view :style="{height:getStatusBarHeight()+'px',background:'#FFF'}"></view>
		<view class="title flex-row" :style="{height:getTitleBarHeight()+'px'}">
			<view class="title-name">我的题库</view>
			<view class="title-right flex-row" :style="{marginRight:getTitleBarRightWidth()+'px'}">
				<view class=" title-xiaoxi">
					<image class="title-xiaoxi-image" src="../../static/index/icon_tongzhi.jpg" mode="heightFix">
					</image>
				</view>
				<un-dot></un-dot>
			</view>
		</view> -->

		<uni-nav-bar title="我的题库" fixed statusBar :border='false'></uni-nav-bar>

		<view class="top flex-row">
			<navigator class="top-item flex-column" url="/pages_lianxi/cuotiku/cuotiku">
				<view class="top-item-container">
					<image class="top-item-image" src="/static/lianxi/cuotiku.png" mode="heightFix"></image>
				</view>
				<view class="top-item-view">错题库</view>
			</navigator>
			<navigator class="top-item flex-column" url="/pages_lianxi/shoucang/shoucang">
				<view class="top-item-container">
					<image class="top-item-image" src="/static/lianxi/shoucang.png" mode="heightFix"></image>
				</view>
				<view class="top-item-view">收藏</view>
			</navigator>
			<navigator class="top-item flex-column" url="/pages_lianxi/biji/biji">
				<view class="top-item-container">
					<image class="top-item-image" src="/static/lianxi/biji.png" mode="heightFix"></image>
				</view>
				<view class="top-item-view">笔记</view>
			</navigator>
			<navigator class="top-item flex-column" url="/pages_lianxi/linianzhenti/topic-practice-history">
				<uni-icons type="calendar" size="40" color="pink"></uni-icons>
				<view class="top-item-view">历史</view>
			</navigator>
		</view>

		<view class="bottom">
			<navigator class="bottom-item flex-column" url="/pages_lianxi/zhangjielianxi/zhangjielianxi">
				<image class="bottom-item-image" src="/static/lianxi/zhangjielianxi.png" mode="heightFix">
				</image>
				<view class="bottom-item-view">章节练习</view>
			</navigator>
			<navigator class="bottom-item flex-column" url="/pages_lianxi/linianzhenti/linianzhenti?type=0">
				<image class="bottom-item-image" src="/static/lianxi/monikaoshi.png" mode="heightFix"></image>
				<view class="bottom-item-view">模拟考试</view>
			</navigator>
			<navigator class="bottom-item flex-column" url="/pages_lianxi/linianzhenti/linianzhenti?type=1">
				<image class="bottom-item-image" src="/static/lianxi/lishizhenti.png" mode="heightFix"></image>
				<view class="bottom-item-view">历年真题</view>
			</navigator>
			<view class="bottom-item flex-column">
				<image class="bottom-item-image" src="/static/lianxi/zujuanlianxi.png" mode="heightFix">
				</image>
				<view class="bottom-item-view">组卷练习</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		getStatusBarHeight,
		getTitleBarHeight,
		getTitleBarRightWidth
	} from "/utils/system.js"

	if (uni.getMenuButtonBoundingClientRect) {
		console.log(uni.getMenuButtonBoundingClientRect());
	}
</script>

<style lang="scss">
	page {
		background: $me-color-background;
	}
</style>

<style lang="scss" scoped>
	.title {
		background: white;
		align-items: center;
		justify-content: center;
	}

	.title-name {
		font-weight: bold;
		font-size: 36rpx;
	}

	.title-right {
		position: absolute;
		right: 0rpx;
	}

	.title-xiaoxi {
		border: 1rpx solid rgba(44, 165, 219, 0.5);
		width: 60rpx;
		height: 60rpx;
		border-radius: 30rpx;
		box-shadow: 0 8rpx 16rpx 0rpx rgba(133, 204, 233, 0.6);
		overflow: hidden;
	}

	.title-xiaoxi-image {
		height: 100%;
	}

	.top {
		margin-top: 1rpx;
		background: white;
		justify-content: space-around;
	}

	.top-item {
		padding: 40rpx;
		align-items: center;
	}

	.top-item-container {
		width: 80rpx;
		height: 80rpx;
		padding: 8rpx;
	}

	.top-item-image {
		height: 100%;
		width: 100%;
	}

	.top-item-view {
		margin-top: 20rpx;
		font-size: 24rpx;
		text-align: center;
	}

	.bottom {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1rpx;
		margin-top: 1rpx;
	}

	.bottom-item {
		background-color: white;
		padding: 76rpx 0 68rpx;
		align-items: center;
	}

	.bottom-item-image {
		height: 120rpx;
	}

	.bottom-item-view {
		margin-top: 20rpx;
		font-size: 24rpx;
	}
</style>